import request from "@/utils/request";

/**
 * 针对表【BILL_COLLECTION(收款费项表)】的数据库操作Controller
 * @RequestMapping("/finance/billCollection")
 */

export function listBillCollection(query) {
  return request({
    url: '/finance/billCollection/list',
    method: 'get',
    params: query
  })
}

export function getBillCollection(id) {
  return request({
    url: '/finance/billCollection/' + id,
    method: 'get'
  })
}


export function addBillCollection(data) {
  return request({
    url: '/finance/billCollection',
    method: 'post',
    data: data
  })
}


export function updateBillCollection(data) {
  return request({
    url: '/finance/billCollection',
    method: 'put',
    data: data
  })
}



export function deleteBillCollection(ids) {
  return request({
    url: '/finance/billCollection/' + ids,
    method: 'delete'
  })
}



export function autoCollection(data) {
  return request({
    url: '/finance/billCollection/autoCollection',
    method: 'post',
    data: data
  })
}

export function autoCollectionall(data) {
  return request({
    url: '/finance/billCollection/autoCollectionall',
    method: 'post',
    data: data
  })
}


//对账单ID查询收款费项
export function listVBCollectionByStatementId(statementId) {
  return request({
    url: '/finance/billCollection/listVBCollectionByStatementId/' + statementId,
    method: 'get'
  })
}

